package com.tencreat.domain.mall;

import com.baomidou.mybatisplus.annotation.*;
import com.tencreat.common.annotation.Excel;
import com.tencreat.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;


/**
 * 店铺商品 套餐参数对象   mall_setmeal_norms
 *
 * @author tencreat
 * @date 2022-01-08
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@TableName("mall_setmeal_norms")
public class MallSetmealNorms extends BaseEntity<MallSetmealNorms> {
    private static final long serialVersionUID = 1L;


    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;


    /** 商品表的商品ID */
    @Excel(name = "商品表的商品ID")
    @ApiModelProperty(value= "商品表的商品ID")
    @TableField("`goods_id`")
    private Long goodsId;



    /** 供应价 */
    @Excel(name = "划线价格")
    @ApiModelProperty(value= "划线价格")
    @TableField("`scribing_price`")
    private BigDecimal scribingPrice;

    /** 库存数量 */
    @Excel(name = "单位 库存数量")
    @ApiModelProperty(value= "库存数量")
    @TableField("`inventory`")
    private Long inventory;


    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic
    @TableField("`del_flag`")
    private String delFlag;


    /** 排序 */
    @Excel(name = "排序")
    @ApiModelProperty(value= "排序")
    @TableField("`sort_order`")
    private Integer sortOrder;


    /** 用户ID */
    @Excel(name = "商家 ID")
    @ApiModelProperty(value= "商家ID")
    @TableField("`user_id`")
    private Long userId;


    /** 商品预览图 */
    @Excel(name = "商品预览图")
    @ApiModelProperty(value= "商品预览图")
    @TableField("`pic_url`")
    private String picUrl;


    @Excel(name = "商品参数")
    @ApiModelProperty(value= "商品参数")
    @TableField("`attribute`")
    private String attribute;


    @ApiModelProperty(value= "原价")
    @TableField("`original_price`")
    private BigDecimal originalPrice;

    /** 专柜价格 */
    @Excel(name = "售价")
    @ApiModelProperty(value= "售价")
    @TableField("`retail_price`")
    private BigDecimal retailPrice;

    @ApiModelProperty(value = "套餐中商品名")
    @TableField("'goods_name'")
    private String goodsName;
}
